<?php
require_once("database.php");
class xl_ extends database
{
	function danh_sach($vi_tri, $so_luong)
	{
		$vi_tri = intval($vi_tri);
		$so_luong = intval($so_luong);
		$sql = "select * from  limit $vi_tri, $so_luong";
		$this->setQuery($sql);
		return $this->loadAllRow();
	}
	function so_luong()
	{
		$sql = "select count(*) from ";
		$this->setQuery($sql);
		return $this->loadResult();
	}
	function xem()
	{
		
		$sql = "select * from  where ";
		$this->setQuery($sql);
		return $this->loadRow();
	}
	function xoa()
	{
		
		$sql = "delete from  where ";
		$this->setQuery($sql);
		return $this->query();
	}
	function them()
	{
		
		$sql = "INSERT INTO () VALUES ()";
		$this->setQuery($sql);
		return $this->query();
	}
	function cap_nhat()
	{
		
		$sql ="UPDATE  SET  WHERE ";
		$this->setQuery($sql);
		return $this->query();
	}
	function tim_kiem ($tu_khoa)
	{
		$sql = "select * from  where"; 
		$this->setQuery($sql);
		return $this->loadAllRow();	
	}
 }
?>